cmake_minimum_required(VERSION 2.8)
project(Mini)

find_program(CMAKE_PYTHON_EXECUTABLE NAMES python DOC "The Python executable")
find_file(GOOGLE_CPP_LINT_PY NAMES cpplint.py DOC "google cpp style scan program.")
if (NOT GOOGLE_CPP_LINT_PY)
    message ("cpplint.py not found")
endif()

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)

if(WIN32)
    option(MINI_CONFIG_WITH_WIN7 "Build Mini with Win7 compatiable?" OFF)
endif()

add_definitions(-DUNICODE -D_UNICODE)
if(BUILD_SHARED_LIBS)
	add_definitions(-DMINI_USING_DLL)
endif()

add_subdirectory(src)
add_subdirectory(sample) 